package cst.a931xmc.yuejian20.Service;

import java.util.List;

import cst.a931xmc.yuejian20.Bean.CommentBean;
import cst.a931xmc.yuejian20.Bean.RegisterBean;
import cst.a931xmc.yuejian20.Bean.ShowBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface ShowService {
    @GET("api/Show/getShowList")
    Call<List<ShowBean>> getShowList();
    @GET("api/Show/getMyShowList")
    Call<List<ShowBean>> getMyShowList(@Query("id") int user_id);
    @GET("api/Show/getShowDetail")
    Call<ShowBean> getShowDetail(@Query("id") int show_id);

    @GET("api/Comment/getCommentList")
    Call<List<CommentBean>> getCommentList(@Query("id") int show_id);
    @GET("api/Comment/getCommentDetail")
    Call<CommentBean> getCommentDetail(@Query("id") int comment_id);
    @GET("api/Comment/addComment")
    Call<RegisterBean> addComment(@Query("sid") int show_id,
                                  @Query("uid") int user_id,
                                  @Query("name") String user_name,
                                  @Query("pic") String user_pic,
                                  @Query("intro") String comment_intro);
}
